package o;

import com.huawei.appgallery.forum.base.https.jgw.JGWTabDetailResponse;
import com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.b;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import o.brm.e;

public class bsl implements bsh {
    private bqv ˊ;
    private String ˋ;
    private bsg ˎ;
    private String ॱ;

    public bsl(bsg o_bsg, String str, String str2) {
        this.ˎ = o_bsg;
        this.ॱ = str;
        this.ˋ = str2;
    }

    public bsl(bsg o_bsg, String str, String str2, bqv o_bqv) {
        this.ˎ = o_bsg;
        this.ॱ = str;
        this.ˋ = str2;
        this.ˊ = o_bqv;
    }

    public void ˏ(String str) {
        this.ˊ = bsv.ॱ(str);
    }

    public void ॱ(String str) {
        this.ˋ = str;
    }

    public cvt ˋ(String str, int i, boolean z) {
        return new e(this.ˋ).ॱ(this.ॱ).ˏ(this.ˊ).ॱ(i).ˋ(str).ॱ();
    }

    public void ˏ(cia o_cia, BaseRequest o_cvu, ResponseBean responseBean) {
        if ((o_cvu instanceof brm) && (responseBean instanceof JGWTabDetailResponse)) {
            bsi.ॱ.ˎ(o_cia, o_cvu, responseBean);
        }
    }

    public boolean ॱ(b bVar) {
        if ((bVar.ˊ instanceof brm) && (bVar.ˋ instanceof JGWTabDetailResponse)) {
            brm o_brm = (brm) bVar.ˊ;
            JGWTabDetailResponse jGWTabDetailResponse = (JGWTabDetailResponse) bVar.ˋ;
            if (jGWTabDetailResponse.ˏ()) {
                this.ˎ.ॱ(o_brm, jGWTabDetailResponse);
                this.ˎ.ˎ(jGWTabDetailResponse.ˊ());
                this.ˊ = bsv.ॱ(jGWTabDetailResponse.ᐝ());
                this.ˎ.ॱ(jGWTabDetailResponse.ᐝ());
                bso.ˊ.ˋ(jGWTabDetailResponse.ʼ());
            } else {
                this.ˎ.ˏ(o_brm, jGWTabDetailResponse);
            }
            return true;
        }
        bqx.ॱ("JGWTabDetailPresenter", "onResponse, request = " + bVar.ˊ + ", reponse = " + bVar.ˋ);
        return false;
    }
}
